/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2016-2018, LomboTech Co.Ltd.
 * Author: lomboswer <lomboswer@lombotech.com>
 *
 * csp_memctrl.c - Driver of LomboTech Memctrl Controller
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef __CSP_MONITOR_H
#define __CSP_MONITOR_H

#include <linux/types.h>
#include <mach/csp.h>

void csp_monitor_vlt_stat_clear(void *base);
void csp_monitor_set_hif_vlt_handle(void *base, u32 block);
int csp_monitor_get_hif_vlt_handle(void *base);
void csp_monitor_set_hif_vlt_int(void *base, u32 enable);
int csp_monitor_get_hif_vlt_int(void *base);
void csp_monitor_set_hif_vlt_en(void *base, u32 enable);
int csp_monitor_get_hif_vlt_en(void *base);
int csp_monitor_get_hif_vlt_type(void *base);
int csp_monitor_get_vlt_status(void *base);
int csp_monitor_get_vlt_addr(void *base);
int csp_monitor_get_vlt_id(void *base);
int csp_monitor_get_vlt_xpi_id(void *base);
void csp_monitor_space_mnt_stat_clear(void *base);
void csp_monitor_set_space_mnt_int(void *base, u32 enable);
int csp_monitor_get_space_mnt_int(void *base);
void csp_monitor_set_space_mnt_en(void *base, u32 enable);
int csp_monitor_get_space_mnt_en(void *base);
int csp_monitor_get_space_mnt_type(void *base);
int csp_monitor_get_space_mnt_status(void *base);
int csp_monitor_get_space_mnt_addr(void *base);
int csp_monitor_get_space_mnt_id(void *base);
int csp_monitor_get_space_mnt_xpi_id(void *base);
void csp_monitor_set_high24_sa(int index, void *base, u32 addr);
int csp_monitor_get_high24_sa(int index, void *base);
int csp_monitor_get_low8_sa(int index, void *base);
void csp_monitor_set_high24_ea(int index, void *base, u32 addr);
int csp_monitor_get_high24_ea(int index, void *base);
int csp_monitor_get_low8_ea(int index, void *base);
void csp_monitor_set_nw(int index, void *base, u32 ip);
int csp_monitor_get_nw(int index, void *base);

#endif
